<template>
  <div>

    <!--    <authc></authc>-->
    <!--    <biaoqianyun></biaoqianyun>-->

    <component
      v-for="(item,index) in sidebarlist" :key="index"
      :is="item" :con="con" :str="str"
    ></component>


  </div>
</template>

<script>
  import authc from "./sidebar/authc";　//　站点统计
  import biaoqianyun from "./sidebar/biaoqianyun";　//　标签云
  import gonggao from "./sidebar/gonggao";

  export default {
    components: {
      authc,
      biaoqianyun,
      gonggao
    },
    data() {
      return {
        // currentView:'biaoqianyun',
        sidebarlist: ['gonggao', 'biaoqianyun', 'authc'],
        con:[],
        str:{}
      }
    },
    created() {
      this.$axios.get("/api/web/tag/").then(con=>{
        this.con = con.data.data
      })
      this.$axios.get("/api/web/setting/").then(con=>{
        this.str = con.data.data

      })
    }
  }

</script>

<style lang="less" scoped>


</style>
